import { Pipe, PipeTransform } from '@angular/core';
import { HtmlHelper } from '@shared/helpers/HtmlHelper';

@Pipe({
    name: 'stringTruncate'
})
export class StringTruncatePipe implements PipeTransform {
    
    transform(value: string, max: number, tail = ' …', wordwise = false): string {
        return HtmlHelper.truncate(value, max, tail, wordwise);
    }

}
